home *** CD-ROM | disk | FTP | other *** search
- struct TextAttr Font=
- {
- "topaz.font",8,FS_NORMAL,FPF_ROMFONT
- };
-
- struct NewScreen NewScreen=
- {
- 0,0,640,256,3,
- 2,1,
- HIRES,CUSTOMSCREEN,&Font,
- NULL,
- NULL,NULL
- };
-
-
- struct NewWindow NewWindow =
- {
- 0,12,640,244,1,0,
- CLOSEWINDOW|RAWKEY|MOUSEBUTTONS|GADGETUP|REQSET,
- WINDOWDRAG|WINDOWCLOSE|WINDOWDEPTH|ACTIVATE,
- NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
- CUSTOMSCREEN
- };
-
-
- UBYTE UNDOBUFFER2[9],UNDOBUFFER3[24];
-
- SHORT BorderVectors1[] = {
- 0,0,
- 54,0,
- 54,14,
- 0,14,
- 0,0
- };
- struct Border Border1 = {
- -1,-1, /* XY origin relative to container TopLeft */
- 3,0,JAM1, /* front pen, back pen and drawmode */
- 5, /* number of XY vectors */
- BorderVectors1, /* pointer to XY vectors */
- NULL /* next border in list */
- };
-
- struct IntuiText IText1 = {
- 2,0,JAM2, /* front and back text pens, drawmode and fill byte */
- 20,3, /* XY origin relative to container TopLeft */
- &Font, /* font pointer or NULL for default */
- "OK", /* pointer to text */
- NULL /* next IntuiText structure */
- };
-
- struct Gadget Gadget7 = {
- NULL, /* next gadget */
- 254,66, /* origin XY of hit box relative to window TopLeft */
- 53,13, /* hit box width and height */
- NULL, /* gadget flags */
- RELVERIFY|ENDGADGET, /* activation flags */
- BOOLGADGET|REQGADGET, /* gadget type flags */
- (APTR)&Border1, /* gadget border or image to be rendered */
- NULL, /* alternate imagery for selection */
- &IText1, /* first IntuiText structure */
- NULL, /* gadget mutual-exclude long word */
- NULL, /* SpecialInfo structure */
- NULL, /* user-definable data */
- NULL /* pointer to user-definable data */
- };
-
- SHORT BorderVectors2[] = {
- 0,0,
- 13,0,
- 13,10,
- 0,10,
- 0,0
- };
- struct Border Border2 = {
- -1,-1, /* XY origin relative to container TopLeft */
- 3,0,JAM1, /* front pen, back pen and drawmode */
- 5, /* number of XY vectors */
- BorderVectors2, /* pointer to XY vectors */
- NULL /* next border in list */
- };
-
-
-
- struct IntuiText IText2 = {
- 1,0,JAM2, /* front and back text pens, drawmode and fill byte */
- 2,1, /* XY origin relative to container TopLeft */
- &Font, /* font pointer or NULL for default */
- "<", /* pointer to text */
- NULL /* next IntuiText structure */
- };
-
- struct Gadget Gadget6 = {
- &Gadget7, /* next gadget */
- 145,68, /* origin XY of hit box relative to window TopLeft */
- 12,9, /* hit box width and height */
- GADGDISABLED, /* gadget flags */
- RELVERIFY, /* activation flags */
- BOOLGADGET|REQGADGET, /* gadget type flags */
- (APTR)&Border2, /* gadget border or image to be rendered */
- NULL, /* alternate imagery for selection */
- &IText2, /* first IntuiText structure */
- NULL, /* gadget mutual-exclude long word */
- NULL, /* SpecialInfo structure */
- NULL, /* user-definable data */
- NULL /* pointer to user-definable data */
- };
-
- SHORT BorderVectors3[] = {
- 0,0,
- 13,0,
- 13,10,
- 0,10,
- 0,0
- };
- struct Border Border3 = {
- -1,-1, /* XY origin relative to container TopLeft */
- 3,0,JAM1, /* front pen, back pen and drawmode */
- 5, /* number of XY vectors */
- BorderVectors3, /* pointer to XY vectors */
- NULL /* next border in list */
- };
-
- struct IntuiText IText3 = {
- 1,0,JAM2, /* front and back text pens, drawmode and fill byte */
- 2,1, /* XY origin relative to container TopLeft */
- &Font, /* font pointer or NULL for default */
- ">", /* pointer to text */
- NULL /* next IntuiText structure */
- };
-
- struct Gadget Gadget5 = {
- &Gadget6, /* next gadget */
- 211,68, /* origin XY of hit box relative to window TopLeft */
- 12,9, /* hit box width and height */
- GADGDISABLED, /* gadget flags */
- RELVERIFY, /* activation flags */
- BOOLGADGET|REQGADGET, /* gadget type flags */
- (APTR)&Border3, /* gadget border or image to be rendered */
- NULL, /* alternate imagery for selection */
- &IText3, /* first IntuiText structure */
- NULL, /* gadget mutual-exclude long word */
- NULL, /* SpecialInfo structure */
- NULL, /* user-definable data */
- NULL /* pointer to user-definable data */
- };
-
- struct StringInfo Gadget4SInfo = {
- NULL, /* buffer where text will be edited */
- NULL, /* optional undo buffer */
- 0, /* character position in buffer */
- 9, /* maximum number of characters to allow */
- 0, /* first displayed character buffer position */
- 0,0,0,0,0, /* Intuition initialized and maintained variables */
- 0, /* Rastport of gadget */
- 0, /* initial value for integer gadgets */
- NULL /* alternate keymap (fill in if you set the flag) */
- };
-
- SHORT BorderVectors4[] = {
- 0,0,
- 107,0,
- 107,9,
- 0,9,
- 0,0
- };
- struct Border Border4 = {
- -1,-1, /* XY origin relative to container TopLeft */
- 3,0,JAM1, /* front pen, back pen and drawmode */
- 5, /* number of XY vectors */
- BorderVectors4, /* pointer to XY vectors */
- NULL /* next border in list */
- };
-
- struct Gadget Gadget4 = {
- &Gadget5, /* next gadget */
- 201,34, /* origin XY of hit box relative to window TopLeft */
- 106,8, /* hit box width and height */
- NULL, /* gadget flags */
- RELVERIFY|STRINGCENTER, /* activation flags */
- STRGADGET|REQGADGET, /* gadget type flags */
- (APTR)&Border4, /* gadget border or image to be rendered */
- NULL, /* alternate imagery for selection */
- NULL, /* first IntuiText structure */
- NULL, /* gadget mutual-exclude long word */
- (APTR)&Gadget4SInfo, /* SpecialInfo structure */
- NULL, /* user-definable data */
- NULL /* pointer to user-definable data */
- };
-
- UBYTE Gadget3SIBuff[9];
- struct StringInfo Gadget3SInfo = {
- Gadget3SIBuff, /* buffer where text will be edited */
- UNDOBUFFER2, /* optional undo buffer */
- 0, /* character position in buffer */
- 9, /* maximum number of characters to allow */
- 0, /* first displayed character buffer position */
- 0,0,0,0,0, /* Intuition initialized and maintained variables */
- 0, /* Rastport of gadget */
- 0, /* initial value for integer gadgets */
- NULL /* alternate keymap (fill in if you set the flag) */
- };
-
- SHORT BorderVectors5[] = {
- 0,0,
- 107,0,
- 107,9,
- 0,9,
- 0,0
- };
- struct Border Border5 = {
- -1,-1, /* XY origin relative to container TopLeft */
- 3,0,JAM1, /* front pen, back pen and drawmode */
- 5, /* number of XY vectors */
- BorderVectors5, /* pointer to XY vectors */
- NULL /* next border in list */
- };
-
- struct Gadget Gadget3 = {
- &Gadget4, /* next gadget */
- 201,50, /* origin XY of hit box relative to window TopLeft */
- 106,8, /* hit box width and height */
- NULL, /* gadget flags */
- RELVERIFY|STRINGCENTER, /* activation flags */
- STRGADGET|REQGADGET, /* gadget type flags */
- (APTR)&Border5, /* gadget border or image to be rendered */
- NULL, /* alternate imagery for selection */
- NULL, /* first IntuiText structure */
- NULL, /* gadget mutual-exclude long word */
- (APTR)&Gadget3SInfo, /* SpecialInfo structure */
- NULL, /* user-definable data */
- NULL /* pointer to user-definable data */
- };
-
- UBYTE Gadget2SIBuff[24];
- struct StringInfo Gadget2SInfo = {
- Gadget2SIBuff, /* buffer where text will be edited */
- UNDOBUFFER3, /* optional undo buffer */
- 0, /* character position in buffer */
- 24, /* maximum number of characters to allow */
- 0, /* first displayed character buffer position */
- 0,0,0,0,0, /* Intuition initialized and maintained variables */
- 0, /* Rastport of gadget */
- 0, /* initial value for integer gadgets */
- NULL /* alternate keymap (fill in if you set the flag) */
- };
-
- SHORT BorderVectors6[] = {
- 0,0,
- 161,0,
- 161,9,
- 0,9,
- 0,0
- };
- struct Border Border6 = {
- -1,-1, /* XY origin relative to container TopLeft */
- 3,0,JAM1, /* front pen, back pen and drawmode */
- 5, /* number of XY vectors */
- BorderVectors6, /* pointer to XY vectors */
- NULL /* next border in list */
- };
-
- struct Gadget Gadget2 = {
- &Gadget3, /* next gadget */
- 148,18, /* origin XY of hit box relative to window TopLeft */
- 160,8, /* hit box width and height */
- NULL, /* gadget flags */
- RELVERIFY, /* activation flags */
- STRGADGET|REQGADGET, /* gadget type flags */
- (APTR)&Border6, /* gadget border or image to be rendered */
- NULL, /* alternate imagery for selection */
- NULL, /* first IntuiText structure */
- NULL, /* gadget mutual-exclude long word */
- (APTR)&Gadget2SInfo, /* SpecialInfo structure */
- NULL, /* user-definable data */
- NULL /* pointer to user-definable data */
- };
-
- SHORT BorderVectors7[] = {
- 0,0,
- 91,0,
- 91,14,
- 0,14,
- 0,0
- };
- struct Border Border7 = {
- -1,-1, /* XY origin relative to container TopLeft */
- 3,0,JAM1, /* front pen, back pen and drawmode */
- 5, /* number of XY vectors */
- BorderVectors7, /* pointer to XY vectors */
- NULL /* next border in list */
- };
-
- struct IntuiText IText4 = {
- 1,0,JAM2, /* front and back text pens, drawmode and fill byte */
- 16,3, /* XY origin relative to container TopLeft */
- &Font, /* font pointer or NULL for default */
- NULL, /* pointer to text */
- NULL /* next IntuiText structure */
- };
-
- struct Gadget Gadget1 = {
- &Gadget2, /* next gadget */
- 21,66, /* origin XY of hit box relative to window TopLeft */
- 90,13, /* hit box width and height */
- GADGDISABLED, /* gadget flags */
- RELVERIFY|ENDGADGET, /* activation flags */
- BOOLGADGET|REQGADGET, /* gadget type flags */
- (APTR)&Border7, /* gadget border or image to be rendered */
- NULL, /* alternate imagery for selection */
- &IText4, /* first IntuiText structure */
- NULL, /* gadget mutual-exclude long word */
- NULL, /* SpecialInfo structure */
- NULL, /* user-definable data */
- NULL /* pointer to user-definable data */
- };
-
- #define GadgetList1 Gadget1
-
- struct IntuiText IText8 = {
- 3,0,JAM2, /* front and back text pens, drawmode and fill byte */
- 169,69, /* XY origin relative to container TopLeft */
- &Font, /* font pointer or NULL for default */
- NULL, /* pointer to text */
- NULL /* next IntuiText structure */
- };
-
- struct IntuiText IText7 = {
- 3,0,JAM2, /* front and back text pens, drawmode and fill byte */
- 19,50, /* XY origin relative to container TopLeft */
- &Font, /* font pointer or NULL for default */
- NULL, /* pointer to text */
- &IText8 /* next IntuiText structure */
- };
-
- struct IntuiText IText6 = {
- 3,0,JAM2, /* front and back text pens, drawmode and fill byte */
- 19,34, /* XY origin relative to container TopLeft */
- &Font, /* font pointer or NULL for default */
- NULL, /* pointer to text */
- &IText7 /* next IntuiText structure */
- };
-
- struct IntuiText IText5 = {
- 3,0,JAM2, /* front and back text pens, drawmode and fill byte */
- 19,18, /* XY origin relative to container TopLeft */
- &Font, /* font pointer or NULL for default */
- NULL, /* pointer to text */
- &IText6 /* next IntuiText structure */
- };
-
- #define IntuiTextList1 IText5
-
- SHORT BorderVectors8[] = {
- 0,0,
- 326,0,
- 326,96,
- 0,96,
- 0,0
- };
- struct Border Border8 = {
- 0,0, /* XY origin relative to container TopLeft */
- 1,0,JAM1, /* front pen, back pen and drawmode */
- 5, /* number of XY vectors */
- BorderVectors8, /* pointer to XY vectors */
- NULL /* next border in list */
- };
-
- struct Requester MyReq = {
- NULL, /* previous requester (filled in by Intuition) */
- 157,66, /* requester XY origin relative to TopLeft of window */
- 327,97, /* requester width and height */
- 0,0, /* relative to these mouse offsets if POINTREL is set */
- &GadgetList1, /* gadget list */
- &Border8, /* box's border */
- &IntuiTextList1, /* requester text */
- NULL, /* requester flags */
- 0, /* back-plane fill pen */
- NULL, /* leave these alone */
- NULL, /* custom bitmap if PREDRAWN is set */
- NULL /* leave this alone */
- };
-
- struct IntuiText OK=
- {
- 0, /* FrontPen, colour 0 (blue). */
- 0, /* BackPen, not used since JAM1. */
- JAM1, /* DrawMode, do not change the background. */
- 6, /* LedtEdge, 6 pixels out. */
- 3, /* TopEdge, 3 lines down. */
- &Font, /* ITextFont, default font. */
- "OK", /* IText, the text that will be printed. */
- NULL, /* NextText, no more IntuiText structures link. */
- };
-
- struct IntuiText BAD=
- {
- 0, /* FrontPen, colour 0 (blue). */
- 0, /* BackPen, not used since JAM1. */
- JAM1, /* DrawMode, do not change the background. */
- 15, /* LedtEdge, 15 pixels out. */
- 5, /* TopEdge, 5 lines down. */
- &Font, /* ITextFont, default font. */
- NULL, /* IText, the text . */
- NULL, /* NextText, no more IntuiText structures link. */
- };
-
- /* end of PowerWindows source generation */
-
- SHORT BorderVectors10[] = {
- 0,0,
- 58,0,
- 58,15,
- 0,15,
- 0,0
- };
-
- SHORT BorderVectors11[] = {
- 0,0,
- 250,0,
- 250,49,
- 0,49,
- 0,0
- };
-
- struct Border Border10 = {
- -1,-1, /* XY origin relative to container TopLeft */
- 3,0,JAM1, /* front pen, back pen and drawmode */
- 5, /* number of XY vectors */
- BorderVectors10, /* pointer to XY vectors */
- NULL /* next border in list */
- };
-
- struct Border Border11 = {
- 0,0, /* XY origin relative to container TopLeft */
- 1,0,JAM1, /* front pen, back pen and drawmode */
- 5, /* number of XY vectors */
- BorderVectors11, /* pointer to XY vectors */
- NULL /* next border in list */
- };
-
- struct IntuiText IText10 = {
- 1,0,JAM2, /* front and back text pens, drawmode and fill byte */
- 14,3, /* XY origin relative to container TopLeft */
- &Font, /* font pointer or NULL for default */
- "STOP", /* pointer to text */
- NULL /* next IntuiText structure */
- };
-
- struct Gadget Gadget10 = {
- NULL, /* next gadget */
- 99,26, /* origin XY of hit box relative to window TopLeft */
- 57,14, /* hit box width and height */
- NULL, /* gadget flags */
- RELVERIFY|ENDGADGET, /* activation flags */
- BOOLGADGET|REQGADGET, /* gadget type flags */
- (APTR)&Border10, /* gadget border or image to be rendered */
- NULL, /* alternate imagery for selection */
- &IText10, /* first IntuiText structure */
- NULL, /* gadget mutual-exclude long word */
- NULL, /* SpecialInfo structure */
- NULL, /* user-definable data */
- NULL /* pointer to user-definable data */
- };
-
- struct IntuiText IText20 = {
- 3,0,JAM2, /* front and back text pens, drawmode and fill byte */
- 42,11, /* XY origin relative to container TopLeft */
- &Font, /* font pointer or NULL for default */
- NULL, /* pointer to text */
- NULL /* next IntuiText structure */
- };
-
- struct Requester MyReq2 = {
- NULL, /* previous requester (filled in by Intuition) */
- 195,74, /* requester XY origin relative to TopLeft of window */
- 251,50, /* requester width and height */
- 0,0, /* relative to these mouse offsets if POINTREL is set */
- &Gadget10, /* gadget list */
- &Border11, /* box's border */
- &IText20, /* requester text */
- NULL, /* requester flags */
- 0, /* back-plane fill pen */
- NULL, /* leave these alone */
- NULL, /* custom bitmap if PREDRAWN is set */
- NULL /* leave this alone */
- };
-